<template>
  <!-- <div class="container">
    <div class="inner">
      <p>房产经纪</p>
      <ul>
        <li v-for="item in list" :key="item.id" class="li">
          <div class="left"><img :src="item.image" alt="" /></div>
          <div class="right">
            <h3>{{ item.name }}</h3>
            <p>{{ item.desc }}</p>
          </div>
        </li>
      </ul>
      
    </div>
  </div> -->
  <div class="container" style="padding-bottom: 250px">
    <div class="inner">
      <div class="box">
        <p
          style="
            font-size: 18px;
            text-align: start;
            color: black;
            margin: 10px 0;
          "
        >
          <strong>房产经纪</strong>
        </p>
        <el-card
          v-for="item in list"
          :key="item.id"
          style="margin-bottom: 10px"
        >
          <div class="item">
            <div class="left">
              <img :src="item.image" alt="图片加载失败" />
            </div>
            <div class="right">
              <h3>{{ item.name }}</h3>
              <span>{{ item.desc }}</span>
            </div>
          </div>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script>
import { getAgentsList } from "@/api/agents";
export default {
  data() {
    return {
      list: [],
      url: "",
    };
  },
  created() {
    this.getAgentsList;
  },
  computed: {
    async getAgentsList() {
      const { data } = await getAgentsList();
      this.list = data;
      console.log(53, data);
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.el-card.is-always-shadow {
  box-shadow: 0 0px 2px 1px rgb(0 0 0 / 10%);
}
.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.box {
  width: 800px;
  //margin: 0px auto;
  margin-top: 60px;
  .item {
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    .left {
      width: 120px;
      height: 100px;
      padding-right: 20px;
      border-right: 1px solid rgba(195, 195, 195, 0.597);
      img {
        width: 100px;
        height: 100px;
        border-radius: 6px;
      }
    }
    .right {
      text-align: center;
      width: 650px;
      height: 100px;
      h3 {
        margin-bottom: 20px;
      }
    }
  }
}
</style>